package com.qulai.amazon_us.domain.basic;

import com.qulai.common.annotation.Excel;
import com.qulai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 货源供应商对象 basic_supplier
 *
 * @author hunan
 * @date 2025-02-07
 */
public class Supplier extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Excel(name = "ID")
    private Long id;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 平台
     */
    @Excel(name = "平台")
    private String platform;

    /**
     * Code
     */
    @Excel(name = "Code")
    private String code;


    private String link;


    public void setLink(String link) {
        if( link != null) {
            this.link = link.trim();
        }else {
            this.link = null;
        }

    }

    public String getLink() {
        return link;
    }

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setPlatform(String platform) {

        if( platform != null) {
            this.platform = platform.trim();
        }else {
            this.platform = null;
        }

    }

    public String getPlatform() {
        return platform;
    }

    public void setCode(String code) {
        if( code != null) {
            this.code = code.trim();
        }else {
            this.code = null;
        }
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        if( name != null) {
            this.name = name.trim();
        }else {
            this.name = null;
        }
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("status", getStatus())
                .append("platform", getPlatform())
                .append("code", getCode())
                .append("name", getName())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}
